﻿using AutoMapper;
using Blog.Repository;
using Blog.Repository.Permission;
using Blog.Service.Auth.Output;

namespace Blog.Service.Auth
{
    /// <summary>
    /// 映射配置
    /// </summary>
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            CreateMap<UserEntity, AuthLoginOutput>();
            CreateMap<UserEntity, AuthUserProfileDto>();

            
            CreateMap<PermissionEntity, AuthUserMenuDto>();
            //CreateMap<List<PermissionEntity>, List<AuthUserMenuDto>>();
        }
    }
}